package com.gxa.modules.pc.hospital.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.model.entity.hospital.Area;
import com.gxa.modules.model.entity.hospital.City;
import com.gxa.modules.model.entity.hospital.Province;
import com.gxa.modules.pc.hospital.mapper.ProvinceMapper;
import com.gxa.modules.pc.hospital.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lst
 * @since 2022-11-19
 */
@Service
public class ProvinceServiceImpl extends ServiceImpl<ProvinceMapper, Province> implements ProvinceService {

    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List<Province> getProvinces() {
        return provinceMapper.getProvinces();
    }

    @Override
    public List<City> getCity(String province) {
        return provinceMapper.getCitys(province);
    }

    @Override
    public List<Area> getArea(String city) {
        return provinceMapper.getAreas(city);
    }
}
